<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>DLC Search Engine: com.utn.searchengine.WordCount Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">DLC Search Engine
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespacecom.html">com</a>      </li>
      <li class="navelem"><a class="el" href="namespacecom_1_1utn.html">utn</a>      </li>
      <li class="navelem"><a class="el" href="namespacecom_1_1utn_1_1searchengine.html">searchengine</a>      </li>
      <li class="navelem"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_word_count.html">WordCount</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">com.utn.searchengine.WordCount Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="com::utn::searchengine::WordCount" -->
<p><a href="classcom_1_1utn_1_1searchengine_1_1_word_count-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static Map&lt; String, Integer &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_word_count.html#a6844e58166eaeaf8830e9333b6e54d3d">retrieveWordCount</a> (<a class="el" href="classcom_1_1utn_1_1searchengine_1_1_document.html">Document</a> doc)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_word_count.html#a460ac30e0a831c1119ba047c91da0a15">getTF</a> (<a class="el" href="classcom_1_1utn_1_1searchengine_1_1_word.html">Word</a> word, <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_document.html">Document</a> document)</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>This class provides the utility of detect the different words that exist on a document </p>
<dl class="author"><dt><b>Author:</b></dt><dd>altamirano,peker,liberal </dd></dl>

<p>Definition at line <a class="el" href="_word_count_8java_source.html#l00017">17</a> of file <a class="el" href="_word_count_8java_source.html">WordCount.java</a>.</p>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a460ac30e0a831c1119ba047c91da0a15"></a><!-- doxytag: member="com::utn::searchengine::WordCount::getTF" ref="a460ac30e0a831c1119ba047c91da0a15" args="(Word word, Document document)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static int <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_word_count.html#a460ac30e0a831c1119ba047c91da0a15">com.utn.searchengine.WordCount.getTF</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_word.html">Word</a>&#160;</td>
          <td class="paramname"><em>word</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_document.html">Document</a>&#160;</td>
          <td class="paramname"><em>document</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Calcula cuantas veces aparece la palabra en un documento </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">word</td><td></td></tr>
    <tr><td class="paramname">document</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>el tf de la word </dd></dl>

<p>Definition at line <a class="el" href="_word_count_8java_source.html#l00086">86</a> of file <a class="el" href="_word_count_8java_source.html">WordCount.java</a>.</p>

<p>References <a class="el" href="_word_8java_source.html#l00042">com.utn.searchengine.Word.getName()</a>, and <a class="el" href="_document_8java_source.html#l00022">com.utn.searchengine.Document.getText()</a>.</p>

<p>Referenced by <a class="el" href="_local_word_count_manager_8java_source.html#l00131">com.utn.searchengine.LocalWordCountManager.estimateWeight()</a>.</p>

</div>
</div>
<a class="anchor" id="a6844e58166eaeaf8830e9333b6e54d3d"></a><!-- doxytag: member="com::utn::searchengine::WordCount::retrieveWordCount" ref="a6844e58166eaeaf8830e9333b6e54d3d" args="(Document doc)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static Map&lt;String, Integer&gt; <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_word_count.html#a6844e58166eaeaf8830e9333b6e54d3d">com.utn.searchengine.WordCount.retrieveWordCount</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_document.html">Document</a>&#160;</td>
          <td class="paramname"><em>doc</em></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">filePath,:</td><td>A path to a disk file </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a collection of words and the times that those words repeats on the file </dd></dl>

<p>Definition at line <a class="el" href="_word_count_8java_source.html#l00024">24</a> of file <a class="el" href="_word_count_8java_source.html">WordCount.java</a>.</p>

<p>References <a class="el" href="_document_8java_source.html#l00022">com.utn.searchengine.Document.getText()</a>, <a class="el" href="_stop_word_map_8java_source.html#l00099">com.utn.searchengine.StopWordMap.isStopWord()</a>, <a class="el" href="_stop_word_map_8java_source.html#l00039">com.utn.searchengine.StopWordMap.readStopWordList()</a>, and <a class="el" href="_stop_word_map_8java_source.html#l00078">com.utn.searchengine.StopWordMap.stopWordIdiomDocumentFinder()</a>.</p>

<p>Referenced by <a class="el" href="_local_word_count_manager_8java_source.html#l00041">com.utn.searchengine.LocalWordCountManager.addDocument()</a>, and <a class="el" href="_local_word_count_manager_8java_source.html#l00168">com.utn.searchengine.LocalWordCountManager.determinateBestSimilitude()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/main/java/com/utn/searchengine/<a class="el" href="_word_count_8java_source.html">WordCount.java</a></li>
</ul>
</div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Thu Feb 16 2012 02:45:40 for DLC Search Engine by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
